import request from "./request.js"

export default {
	// 登录
	account(params) {
		return request("/login/account", "POST", params)
	},
	// 注册
	register(params) {
		return request("/user/phone/register", "POST", params)
	},
	// 提交留言
	addMessage(params) {
		return request("/messageController/addMessage", "POST", params)
	},
	// 资料修改
	userAddOrUpdate(params) {
		return request("/user/userAddOrUpdate", "POST", params)
	},
	// 房源
	getHousingResourcesInfoList(params) {
		return request("/housingResourcesInfoController/getHousingResourcesInfoList", "POST", params)
	},
	// 公告
	getNoticeList(params) {
		return request("/noticeController/getNoticeList", "POST", params)
	},
	// 新建租赁
	addLeasingInformation(params) {
		return request("/leasingInformationController/addLeasingInformation", "POST", params)
	},
	// 新建预约
	addReservation(params) {
		return request("/reservationController/addReservation", "POST", params)
	},
	// 查询租赁
	getLeasingInformationList(params) {
		return request("/leasingInformationController/getLeasingInformationList", "POST", params)
	},
}